package cn.iocoder.boot.entity;

import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.sql.Timestamp;

/**
 * 平台api管理
 */
@Data
@TableName("kb_platform_api")
public class KbPlatformApi extends BaseDO {
    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 授权平台
     */
    @TableField("authorization_platform")
    private String authorizationPlatform;

    /**
     * 回调地址
     */
    @TableField("callback_address")
    private String callbackAddress;

    /**
     * 调用量(次/日)
     */
    @TableField("call_number")
    private Long callNumber;

    /**
     * 剩余量（日）
     */
    @TableField("remaining_number")
    private Long remainingNumber;

    /**
     * 状态
     */
    @TableField("status")
    private String status;

    /**
     * 描述
     */
    @TableField("remark")
    private String remark;

    /**
     * 描述
     */
    @TableField("notice_number")
    private String noticeNumber;

    /**
     * 描述
     */
    @TableField("notice_email")
    private String noticeEmail;

    private Long userId;
    @TableField(exist = false)
    private String userName;


    @Schema(description = "告警阈值", example = "10")
    private Integer alarmThreshold;

    @Schema(description = "告警值", example = "10")
    private Long alarmValue;
}
